package io.dshubs.archives.service;


import com.baomidou.mybatisplus.extension.service.IService;
import io.dshubs.archives.entity.ArchiveWarehouseLocation;
import io.dshubs.archives.entity.ArchiveWarehouseZone;
import io.dshubs.commons.mybatis.service.BaseService;
import io.dshubs.commons.tools.page.PageData;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 密架货位表 服务类
 * </p>
 *
 * @author tan
 * @since 2021-08-17
 */
public interface ArchiveWarehouseLocationService extends BaseService<ArchiveWarehouseLocation> {

    /**
     *  分页
     * @param params params
     * @return PageData<ArchiveWarehouseLocation>
     */
    PageData<ArchiveWarehouseLocation> page(Map<String, Object> params);

    /**
     * 添加密集架时候自动生成货位
     * @param archiveWarehouseLocation archiveWarehouseLocation
     */
    void save(ArchiveWarehouseLocation archiveWarehouseLocation);

    /**
     * 分类查询
     * @param params params
     * @return ArchiveWarehouseLocation
     */
    List<Map<String, Object>> group(Map<String, Object> params);

    List<ArchiveWarehouseLocation> getBySegmentNo(Map<String, Object> params);
}
